<?php

namespace app\common\model;

use think\Model;

/**
 * 项目模型
 */
class Project extends Model
{

    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'created_time';
    protected $updateTime = 'updated_time';

    const STATUS_PROGRESS = 1;
    const STATUS_COOPERATE = 2;
    const STATUS_OUTDATE = 3;

    const STATUS = [
        self::STATUS_PROGRESS   => '进行中',
        self::STATUS_COOPERATE  => '已合作',
        self::STATUS_OUTDATE  => '已过期',
    ];
}
